/* 
 * File:   seg lcd .h
 * Author: aple
 */

#ifndef __SEG_LCD_H_H_
#define	__SEG_LCD_H_H_

#include "stdint.h"

#ifdef	__cplusplus
extern "C" {
#endif

	//seg lcd manage
#define seg_lcd_bit4_make(seg,com)      ((seg<<2)+com)
#define seg_lcd_bit8_make(seg,com)      ((seg<<3)+com)
	void seg_lcd_buff_set(uint8_t * buff);
	void seg_lcd_num_cfg_set(uint8_t(*cfg)[]);
	void seg_lcd_bit_set(uint8_t bit_val);
	void seg_lcd_bit_clr(uint8_t bit_val);
	void seg_lcd_bit_tog(uint8_t bit_val);
	uint8_t seg_lcd_bit_get(uint8_t bit_val);
	void seg_lcd_num_set(uint8_t site, uint8_t val);

#ifdef	__cplusplus
}
#endif

#endif	/* __SEG_LCD_H_H_ */

